#include "s3c2440_reg.h"


void sdram_init()
{
	BWSCON = 0x22111110;
	BANKCON0= 0x700;
	BANKCON1= 0x700;
	BANKCON2=0x700;
	BANKCON3= 0x700;
	BANKCON4= 0x700;
	BANKCON5= 0x700;
	BANKCON6=0x18005;
	BANKCON7= 0x18005;
	REFRESH= 0x8c03f4;
	BANKSIZE= 0xb1;
	MRSRB6=0x30;
	MRSRB7= 0x30;
}

void sram_copyto_sdram(unsigned int * start_addr, unsigned int * des_addr, unsigned int size)
{
	int i=0;
	//volatile unsigned int * start = (volatile unsigned int *) start_addr;
	//volatile unsigned int * dest = (volatile unsigned int *) des_addr;
	for(i=0;i<size;i++)
	{
		*(des_addr++)=*(start_addr++);
		
	}
	
}
